package com.payment.service.impl;
import com.payment.entity.Patients;
import com.payment.mapper.PatientsMapper;
import com.payment.service.PatientsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class PatientsServiceImpl implements PatientsService {

    @Autowired
    private PatientsMapper patientsMapper;

    @Override
    public List<Patients> getAll() {
        return patientsMapper.getAll();
    }

    @Override
    public Patients getById(int id) {
        return patientsMapper.getById(id);
    }

    @Override
    public Patients login(Patients entity) {
        return patientsMapper.login(entity);
    }

    @Override
    public int add(Patients entity) {
        return patientsMapper.add(entity);
    }

    @Override
    public int del(int id) {
        return patientsMapper.del(id);
    }

    @Override
    public int update(Patients entity) {
        return patientsMapper.update(entity);
    }
}
